//9：输出1900年到现在所有的闰年 
package Work0601;

import java.util.Calendar;

public class LeapYear {

	public static void main(String[] args) {
		Calendar y = Calendar.getInstance();
		for (int year = 1900; year <= 2020; year++) {
			y.set(Calendar.YEAR, year);
			if (y.getActualMaximum(Calendar.DAY_OF_YEAR) == 366) {
				System.out.println(y.get(Calendar.YEAR));
			}
		}
	}

}
